package com.oldwine.order.service.impl;

import com.oldwine.feign.pojo.Order;
import com.oldwine.order.mapper.OrderMapper;
import com.oldwine.order.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OrderServiceImpl implements OrderService {
    @Autowired
    private OrderMapper orderMapper;//依赖注入

    /**
     * 根据订单id查询订单信息
     * @param orderId 订单id
     * @return 返回订单对象
     */
    @Override
    public Order findOrderById(Long orderId) {
        return orderMapper.findOrderById(orderId);
    }
}
